package com.karry.yl.domain.services;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.karry.commons.base.SuperEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@TableName("records")
public class Records extends SuperEntity {
    public static final int TYPE_NORMAL = 1;
    public static final int TYPE_TJ = 2;

    public static final int STATUS_0 = 0;

    private Long elderlyId;  //所属老人
    private String elderlyName;  //老人姓名
    private String elderlyCode;  //老人编号
    private Long orgId;  //所属机构
    private String orgName;  //机构名称

    private String serverTypeName;  //主分类名称
    private Long serverTypeId;  //主分类ID

    private String itemName;  //项目名称
    private Long itemId;  //项目ID

    private BigDecimal cost; //费用

    private String attachment; //服务结果附件

    private String remark; // 备注信息

    private Integer status; // 0: 未加入收款单  1：已加入收款单

    private Long userId;  // 添加服务的用户Id
    private String userName;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date serviceDate;   //服务时间

    private int type; //1：普通服务 2：体检服务

    private String serviceImg;//上传的纸质服务记录图片

    @TableField(exist = false)
    private String healthDataitemName;  //健康数据项名称

    @TableField(exist = false)
    private Long healthDataItemId;  //健康数据项ID

    @TableField(exist = false)
    private String value;   //体检的值

    @TableField(exist = false)
    private Boolean nature; //false: 阴性   true:阳性

    @TableField(exist = false)
    private String description;   //病情描述或建议

    @TableField(exist = false)
    private String standardValues; //参考值


    public String getHealthDataitemName() {
        return healthDataitemName;
    }

    public void setHealthDataitemName(String healthDataitemName) {
        this.healthDataitemName = healthDataitemName;
    }

    public Long getHealthDataItemId() {
        return healthDataItemId;
    }

    public void setHealthDataItemId(Long healthDataItemId) {
        this.healthDataItemId = healthDataItemId;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Boolean getNature() {
        return nature;
    }

    public void setNature(Boolean nature) {
        this.nature = nature;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getStandardValues() {
        return standardValues;
    }

    public void setStandardValues(String standardValues) {
        this.standardValues = standardValues;
    }

    public String getServiceImg() {
        return serviceImg;
    }

    public void setServiceImg(String serviceImg) {
        this.serviceImg = serviceImg;
    }

    public Long getElderlyId() {
        return elderlyId;
    }

    public void setElderlyId(Long elderlyId) {
        this.elderlyId = elderlyId;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public BigDecimal getCost() {
        return cost;
    }

    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }

    public String getAttachment() {
        return attachment;
    }

    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public String getServerTypeName() {
        return serverTypeName;
    }

    public void setServerTypeName(String serverTypeName) {
        this.serverTypeName = serverTypeName;
    }

    public Long getServerTypeId() {
        return serverTypeId;
    }

    public void setServerTypeId(Long serverTypeId) {
        this.serverTypeId = serverTypeId;
    }

    public String getElderlyName() {
        return elderlyName;
    }

    public void setElderlyName(String elderlyName) {
        this.elderlyName = elderlyName;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getElderlyCode() {
        return elderlyCode;
    }

    public void setElderlyCode(String elderlyCode) {
        this.elderlyCode = elderlyCode;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getServiceDate() {
        return serviceDate;
    }

    public void setServiceDate(Date serviceDate) {
        this.serviceDate = serviceDate;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
